#include "cake.h"

Cake::Cake(Image* cakeImage)
{
   _cakeSprite.SetImage(cakeImage);
   _available = true;
}

Cake::~Cake()
{

}
	  
void Cake::SetLocation(float x, float y)
{
   _cakeSprite.SetPosition(x,y);
}
	  
bool Cake::CheckCollision(Sprite* sprite)
{
    if(_available)
		return _cakeSprite.CollidesWith(sprite, true);
	else
		return false;
}

void Cake::Render(float dx, float dy)
{
   if(_available)
      _cakeSprite.Draw(dx, dy);
}
